package com.nhjf.model.teachers;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
@SuppressWarnings("serial")
@Entity
@Table(name = "teacher_has_type")
public class TeacherHasCoursesType extends BaseModel{

	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;

	/**
	 * 老师id
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "teacherId")
	private Teacher teacherId;
	/**
	 * 课程类型id
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "coursesTypeId")
	private CoursesType coursesTypeId;
	
	/**
	 * 查询批改数量
	 */
	@Transient
	private Integer correction;
	/**
	 * 查询排队人数
	 */
	@Transient
	private Integer queue;
	
	/**
	 * 查询排队人数
	 */
	@Transient
	private String teacherTypeList;
	
	
	public String getTeacherTypeList() {
		return teacherTypeList;
	}
	public void setTeacherTypeList(String teacherTypeList) {
		this.teacherTypeList = teacherTypeList;
	}
	public Integer getCorrection() {
		return correction;
	}
	public void setCorrection(Integer correction) {
		this.correction = correction;
	}
	public Integer getQueue() {
		return queue;
	}
	public void setQueue(Integer queue) {
		this.queue = queue;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Teacher getTeacherId() {
		return teacherId;
	}
	public void setTeacherId(Teacher teacherId) {
		this.teacherId = teacherId;
	}
	public CoursesType getCoursesTypeId() {
		return coursesTypeId;
	}
	public void setCoursesTypeId(CoursesType coursesTypeId) {
		this.coursesTypeId = coursesTypeId;
	}
	
	
}
